package com.sunny.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sunny.dto.ArticleDTO;
import com.sunny.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author sunny
 * @since 2025-10-24
 */
public interface IArticleService extends IService<Article> {

    Integer add(ArticleDTO articleDTO);

    Page<Article> blogs(Page<Article> articlePage);

    Boolean deleteArticle(Long articleId);

    ArticleDTO getArticleById(Long articleId);
}
